package com.demo.study.base.demos;

/**
 * Demo3_Overrode
 *
 * @author Baymax Gu
 * @since 2024-09-10
 */
public class Demo3_OverRide {

}

abstract class Father {
    private void m1() {
    }

    protected void m2() {
    }

    public void m3() {
    }

    protected abstract void m4();
}

class Son extends Father {
    @Override
    public void m2() {
        super.m2();
    }

    @Override
    public void m3() {
        super.m3();
    }

    @Override
    protected void m4() {

    }
}
